home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
asm32.zip
/
E32.ZIP
/
DOSSHELL.ASM
< prev
next >
Wrap
Assembly Source File
|
1996-08-26
|
1KB
|
64 lines
; DOSSHELL.ASM for E32 - Copyright (C) 1994 Douglas Herr
; all rights reserved
include model.inc
public dosshell
extrn system:near
extrn insert:near
extrn isinsert:near
extrn tprintce:near
extrn ucursoron:near
extrn get_screen_data:near
extrn mouse_init:near
extrn locate:near
include dataseg.inc
extrn dirty_bits:byte
extrn normal:byte, rows:byte
extrn cur_posn:word
extrn cursor:dword
nul db 0
@curseg ends
include codeseg.inc
dosshell proc near
mov ax,0
int 33h
mov dh,rows
inc dh
xor dl,dl
mov ah,normal
lea esi,nul
call tprintce
call ucursoron
call isinsert
pushf
push ds
pop es
mov ebx,esi
call system
xor eax,eax
popf
cmc
adc eax,0
call insert
or dirty_bits,00110001b ; redo top line & F-keys
call get_screen_data
mov dx,cur_posn
mov al,rows
cmp dh,al
jb short d0
mov dh,al
; dec dh ; else move cursor to bottom of screen
mov esi,cursor
call locate
d0:
call mouse_init
ret
dosshell endp
@curseg ends
end